package com.boc.langxiang.entity.response;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class AdmDetailEntity implements Parcelable {
    private String id;
    private String nickname;
    private String phone;
    private PhotoEntity photo;
    private String zhiwu;
    private int click_num;
    private int product_num;
    private int click_type;
    private List<String> bannerurl;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public PhotoEntity getPhoto() {
        return photo;
    }

    public void setPhoto(PhotoEntity photo) {
        this.photo = photo;
    }

    public String getZhiwu() {
        return zhiwu;
    }

    public void setZhiwu(String zhiwu) {
        this.zhiwu = zhiwu;
    }

    public int getClick_num() {
        return click_num;
    }

    public void setClick_num(int click_num) {
        this.click_num = click_num;
    }

    public int getProduct_num() {
        return product_num;
    }

    public void setProduct_num(int product_num) {
        this.product_num = product_num;
    }

    public int getClick_type() {
        return click_type;
    }

    public void setClick_type(int click_type) {
        this.click_type = click_type;
    }

    public List<String> getBannerurl() {
        return bannerurl;
    }

    public void setBannerurl(List<String> bannerurl) {
        this.bannerurl = bannerurl;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.nickname);
        dest.writeString(this.phone);
        dest.writeParcelable(this.photo, flags);
        dest.writeString(this.zhiwu);
        dest.writeInt(this.click_num);
        dest.writeInt(this.product_num);
        dest.writeInt(this.click_type);
        dest.writeStringList(this.bannerurl);
    }

    public AdmDetailEntity() {
    }

    protected AdmDetailEntity(Parcel in) {
        this.id = in.readString();
        this.nickname = in.readString();
        this.phone = in.readString();
        this.photo = in.readParcelable(PhotoEntity.class.getClassLoader());
        this.zhiwu = in.readString();
        this.click_num = in.readInt();
        this.product_num = in.readInt();
        this.click_type = in.readInt();
        this.bannerurl = in.createStringArrayList();
    }

    public static final Parcelable.Creator<AdmDetailEntity> CREATOR = new Parcelable.Creator<AdmDetailEntity>() {
        @Override
        public AdmDetailEntity createFromParcel(Parcel source) {
            return new AdmDetailEntity(source);
        }

        @Override
        public AdmDetailEntity[] newArray(int size) {
            return new AdmDetailEntity[size];
        }
    };
}